package models;

public class SLA {
	/**
	 * SLA Entity
	 * This model SLA, the service level agreement
	 * Where SLA(x,y) = P(response time <=x)>=y
	 */
	private double x;
	private double y;
	
	public SLA(double x, double y){
		this.x=x;
		this.y=y;
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}
	
	public String toString(){
		return "SLA(" + x + "," + y + ")";
	}
	
	public boolean equals(SLA s2){
		return x == s2.getX() && y == s2.getY();
	}
}
